package tk.mybatis.springboot.model;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class CalculateApiReqMsg implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -4206859336221903231L;

	private final String operType = "ACCPRICE";
	
	private String msg = "精准报价";
	
	private String sendTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
	
	private String sign = "";
	
	private Map<String, Object> data = new HashMap<String, Object>();
	
	public CalculateApiReqMsg(){
		
	}

	public static CalculateApiReqMsg buildMessage(SimulateApiReqMsg simulateApiReqMsg, PersonInfo personInfo){
		CalculateApiReqMsg msg = new CalculateApiReqMsg();
		msg.data.putAll(simulateApiReqMsg.getData());
		msg.data.put("personInfo", personInfo);
		return msg;
	}
	
	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getSendTime() {
		return sendTime;
	}

	public void setSendTime(String sendTime) {
		this.sendTime = sendTime;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public String getOperType() {
		return operType;
	}

	public Map<String, Object> getData() {
		return data;
	}

	public void setData(Map<String, Object> data) {
		this.data = data;
	}
}
